package com.user.feignclient;

import org.springframework.stereotype.Component;


@Component  // 别忘了这个注解，还应该被扫描到
public class EmailFallBack implements  EmailFeignClient{

    @Override
    public boolean sendEmail(String email, String code) {
        //直接返回false
        System.out.println("...............................直接降级：直接返回false");
        return false;
    }
}
